package com.ruoyi.system.domain.estate;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车位管理对象 t_parking_space
 * 
 * @author ruoyi
 */
public class Parking extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车位ID */
    private Long parkingId;

    /** 车位编号 */
    @Excel(name = "车位编号")
    private String parkingCode;

    /** 所属区域 */
    @Excel(name = "所属区域")
    private String parkingArea;

    /** 车位类型（0地上 1地下） */
    @Excel(name = "车位类型", readConverterExp = "0=地上,1=地下")
    private String parkingType;

    /** 使用状态（0空闲 1已分配 2临时占用） */
    @Excel(name = "使用状态", readConverterExp = "0=空闲,1=已分配,2=临时占用")
    private String parkingStatus;

    /** 住户ID */
    @Excel(name = "住户ID")
    private Long residentId;

    /** 住户名称 */
    @Excel(name = "住户名称")
    private String residentName;

    /** 月租费用 */
    @Excel(name = "月租费用")
    private Double monthlyFee;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setParkingId(Long parkingId) 
    {
        this.parkingId = parkingId;
    }

    public Long getParkingId() 
    {
        return parkingId;
    }
    
    public void setParkingCode(String parkingCode) 
    {
        this.parkingCode = parkingCode;
    }

    public String getParkingCode() 
    {
        return parkingCode;
    }
    
    public void setParkingArea(String parkingArea) 
    {
        this.parkingArea = parkingArea;
    }

    public String getParkingArea() 
    {
        return parkingArea;
    }
    
    public void setParkingType(String parkingType) 
    {
        this.parkingType = parkingType;
    }

    public String getParkingType() 
    {
        return parkingType;
    }
    
    public void setParkingStatus(String parkingStatus) 
    {
        this.parkingStatus = parkingStatus;
    }

    public String getParkingStatus() 
    {
        return parkingStatus;
    }
    
    public void setResidentId(Long residentId) 
    {
        this.residentId = residentId;
    }

    public Long getResidentId() 
    {
        return residentId;
    }
    
    public void setResidentName(String residentName) 
    {
        this.residentName = residentName;
    }

    public String getResidentName() 
    {
        return residentName;
    }
    
    public void setMonthlyFee(Double monthlyFee) 
    {
        this.monthlyFee = monthlyFee;
    }

    public Double getMonthlyFee() 
    {
        return monthlyFee;
    }
    
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("parkingId", getParkingId())
            .append("parkingCode", getParkingCode())
            .append("parkingArea", getParkingArea())
            .append("parkingType", getParkingType())
            .append("parkingStatus", getParkingStatus())
            .append("residentId", getResidentId())
            .append("residentName", getResidentName())
            .append("monthlyFee", getMonthlyFee())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 